import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const MEMBER: AppRouteRecordRaw = {
  path: '/membermanage',
  name: 'membermanage',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.memberManage',
    icon: 'icon-tool',
    requiresAuth: true,
    order: 10,
  },
  children: [
    {
      path: '/member',
      name: 'Member',
      component: () => import('@/views/member/list.vue'),
      meta: {
        locale: 'menu.member',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/member/chart',
      name: 'MemberChart',
      component: () => import('@/views/member/chart.vue'),
      meta: {
        locale: 'menu.memberChart',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default MEMBER;
